//
//  Store.swift
//  MyCookbook
//
//  Created by liaokylin on 2024/10/14.
//

import SwiftUI

struct Store: View {
    var body: some View {
        NavigationStack{
            ScrollView{
                VStack{
                    HStack{
                        Spacer()
                        NavigationLink {
                            
                        } label: {
                            Text("我的订单")
                                .padding()
                                .font(.subheadline)
                                .bold()
                                .foregroundColor(.black)
                                .background(Color.gray.opacity(0.1))
                                .cornerRadius(8)
                        }.frame(maxWidth: .infinity)
                 
                        NavigationLink {
                            
                        } label: {
                            Text("我的收藏")
                                .padding()
                                .font(.subheadline)
                                .bold()
                                .foregroundColor(.black)
                                .background(Color.gray.opacity(0.1))
                                .cornerRadius(8)
                        }.frame(maxWidth: .infinity)
    
                        NavigationLink {
                            
                        } label: {
                            Text("我的积分")
                                .padding()
                                .font(.subheadline)
                                .bold()
                                .foregroundColor(.black)
                                .background(Color.gray.opacity(0.1))
                                .cornerRadius(8)
                        }.frame(maxWidth: .infinity)
                        Spacer()
                    }
                    Image("1")
                        .resizable()
                        .frame(maxWidth: .infinity,maxHeight: 200)
            
                    DailyNew()
                    
                    TopSelling()
                }.padding()

            }
        }
      
    }
}

#Preview {
    Store()
}
